package com.tryLogin.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;


@Controller
public class IndexController {

    @RequestMapping("/")
    public String index(HttpSession session){
        /*
          清空session跳转页面
         */
        session.invalidate();
        return"/page/doLogin.jsp";
    }

    @RequestMapping("/api")
    public String api(HttpSession session){
        /*
          清空session跳转页面
         */
        session.invalidate();
        return"/page/login.html";
    }
}
